package com.havey.ye.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author yehuaiwei
 * @since 2025-01-22
 */
@Data
@TableName("chat_records")
@ApiModel(value = "ChatRecords对象", description = "")
public class ChatRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String sessionId;

    private String questionContent;

    private String answerContent;

    private LocalDateTime createdAt;

    private String createdBy;

    @Override
    public String toString() {
        return "ChatRecords{" +
                "id = " + id +
                ", sessionId = " + sessionId +
                ", questionContent = " + questionContent +
                ", answerContent = " + answerContent +
                ", createdAt = " + createdAt +
                ", createdBy = " + createdBy +
                "}";
    }
}
